import request from '@/utils/request'

// 查询动态类型列表
export function listDynamicType(query) {
  return request({
    url: '/ypp/dynamicType/list',
    method: 'get',
    params: query
  })
}

// 查询动态类型详细
export function getDynamicType(id) {
  return request({
    url: '/ypp/dynamicType/' + id,
    method: 'get'
  })
}

// 新增动态类型
export function addDynamicType(data) {
  return request({
    url: '/ypp/dynamicType',
    method: 'post',
    data: data
  })
}

// 修改动态类型
export function updateDynamicType(data) {
  return request({
    url: '/ypp/dynamicType',
    method: 'put',
    data: data
  })
}

// 删除动态类型
export function delDynamicType(id) {
  return request({
    url: '/ypp/dynamicType/' + id,
    method: 'delete'
  })
}

// 导出动态类型
export function exportDynamicType(query) {
  return request({
    url: '/ypp/dynamicType/export',
    method: 'get',
    params: query
  })
}